package com.itheima.homework.Controller;

import com.itheima.homework.API.WeatherAPI;
import com.itheima.homework.DTO.WeatherDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 *
 * @author blusr
 * @version 1.0
 * @date 2025/10/8 20:25
 */
@RestController
@RequestMapping("/weather")
public class WeatherController {
    @GetMapping("/real/time")
    public String LiveWeather_24Hours(WeatherDTO weatherDTO) {
        return WeatherAPI.getLiveWeather_24Hours(weatherDTO);
    }
}
